package com.itboye.sunsun.person.fragments;

import java.util.ArrayList;
import java.util.List;

import com.itboye.sunsun.R;
import com.itboye.sunsun.Application.App;
import com.itboye.sunsun.adapter.ReceiveListViewAdapter;
import com.itboye.sunsun.adapter.SendListViewAdapter;
import com.itboye.sunsun.custome.XListView;

import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

@SuppressLint("ValidFragment")
public class SendFragment extends Fragment {
	
	
	private Context context;
    private XListView xListView;
    private View sendView;
    private SendListViewAdapter sendAdapter;
	
	public SendFragment() {
		// TODO Auto-generated constructor stub
	}

	public SendFragment(Context context) {
		this.context = context;
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub

		sendView = inflater.inflate(R.layout.fragment_allfragment, container,false);

		initView();
		return sendView;
	}

	public void initView() {
		xListView = (XListView) sendView.findViewById(R.id.xlistview);

		List list = new ArrayList();
		list.add("hha");
		list.add("11");

		sendAdapter = new SendListViewAdapter(App.ctx, list);

		xListView.setAdapter(sendAdapter);

	}
}
